import formBuilder from "@/comps/form/formBuilder";
import apiItemSku from "../../ItemSku/js/api";

export default {
    main:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100)

        fb.addSearch("itemId").setApi(apiItemSku.urlChoice)
            .setApiSearchKeys(["text__like","code__like"])
        fb.addFiles("pics","图片",12).setIsPic().setIsMultiple()
            .setAcceptPic()
        fb.addText("note","备注",12).setMulti(true).setRows(3)

        return fb
    },
    other:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100).setLabelPosition("right")

        return fb
    }
}